package com.auto.learning.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.auto.learning.R;
import com.auto.learning.tools.CommonMethod;

public class SmoothFragment extends Fragment{
	
	private int resId;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		ImageView view = (ImageView) LayoutInflater.from(getActivity()).inflate(R.layout.ad_child_view, null);
		view.setImageBitmap(CommonMethod.readBitMap(getActivity(), resId));
		return view;
	}
	
	public void setResId(int resId) {
		this.resId = resId;
	}
}